hysop.tools.decorators module¶
- hysop.tools.decorators.debug(f)[source]¶
Debug decorator Usage: @debug before function definition you want to debug If verbose is set to True: prints filename and line of function definition Else: only print depth of call and function name
- hysop.tools.decorators.profile(f)[source]¶
Decorator to enable function profiling of a method inside a class. The concerned class must have a Profiler attribute.
- hysop.tools.decorators.requires_cmd(*args)[source]¶
Raise a RuntimeError if given executable names are not found in system PATH.